<!--
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the Source EULA. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
-->

<div class="fullsize vertBox editdata-component">
	<div id="results" *ngIf="renderedDataSets.length > 0" class="results vertBox scrollable"
		 (onScroll)="onScroll($event)" [class.hidden]="!resultActive">
		<div class="boxRow content horzBox slickgrid editable" *ngFor="let dataSet of renderedDataSets; let i = index"
			[style.max-height]="dataSet.maxHeight" [style.min-height]="dataSet.minHeight">
			<slick-grid #slickgrid id="slickgrid_{{i}}" [columnDefinitions]="dataSet.columnDefinitions"
						[ngClass]="i === activeGrid ? 'active' : ''"
						[dataRows]="dataSet.dataRows"
						enableAsyncPostRender="true"
						showDataTypeIcon="false"
						showHeader="true"
						[resized]="dataSet.resized"
						[plugins]="slickgridPlugins"
						(cellEditBegin)="onCellEditBegin($event)"
						(cellEditExit)="onCellEditEnd($event)"
						(rowEditBegin)="onRowEditBegin($event)"
						(rowEditExit)="onRowEditEnd($event)"
						(contextMenu)="openContextMenu($event, dataSet.batchId, dataSet.resultId, i)"
						[isColumnEditable]="onIsColumnEditable"
						[isCellEditValid]="onIsCellEditValid"
						[overrideCellFn]="overrideCellFn"
						enableEditing="true"
						class="boxCol content vertBox slickgrid">
			</slick-grid>
		</div>
	</div>
</div>